﻿using Blog.System.TooklKits.Extensions;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using System.Threading.Tasks;

namespace Blog.System.Web
{
    public class Program
    {
        public static async Task Main(string[] args)
        {
            await Host.CreateDefaultBuilder(args)
                // .UseLog4Net()
                .ConfigureWebHostDefaults(builder =>
                {
                    builder.UseIISIntegration()
                    .ConfigureKestrel(options => 
                    {
                        options.AddServerHeader = false;
                    })
                     // .UseUrls($"http://*:{AppSettings.ListenPort}")
                    .UseStartup<Startup>();
                }).UseAutofac().Build().RunAsync();
        }
    }
}
